package com.imooc.pojo;

import lombok.ToString;

/**
 *
 * @author Gao.Chao.Chao
 */
@ToString
public class UploadGoodsInfo  implements Comparable <UploadGoodsInfo>{

    private String goodsId;
    private String goodsTypeId;
    private String goodsName;
    private String expectSale;
    private String price;
    /**
     *  优惠券
     */
    private String discount;
    private String express;
    private String stock;
    /**
     * 卖方赠券 판매자 쿠폰(원)
     */
    private String seller;
    /**
     * 卖方运费(元) 판매자 배송비(원)
     */
    private String sellerExpress;
    /**
     * 售后价格(元)
     */
    private String sellerPrice;
    /**
     * 转换后的价格
     */
    private String totalPrice;

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(String goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getExpectSale() {
        return expectSale;
    }

    public void setExpectSale(String expectSale) {
        this.expectSale = expectSale;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public String getExpress() {
        return express;
    }

    public void setExpress(String express) {
        this.express = express;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public String getSeller() {
        return seller;
    }

    public void setSeller(String seller) {
        this.seller = seller;
    }

    public String getSellerExpress() {
        return sellerExpress;
    }

    public void setSellerExpress(String sellerExpress) {
        this.sellerExpress = sellerExpress;
    }

    public String getSellerPrice() {
        return sellerPrice;
    }

    public void setSellerPrice(String sellerPrice) {
        this.sellerPrice = sellerPrice;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public int compareTo(UploadGoodsInfo o) {
        if(this.goodsId.equals(o.getGoodsId())){
            return 0;
        }else {
            return 1;
        }
    }
}
